package CSC;

public class MessageBean {
    private String userName;//用户名
    private long userID;//用户ID
    private long messageID;//消息ID
    private long groupID;//分组ID，用于群聊
    private long friendID;//好友ID，用于一对一聊天
    private boolean isGroup;//用于判断是否群聊
    private boolean isFirst;
    private int chatType;
    private String content;// 文本消息内容
    private String errorMsg;// 错误信息
    private int errorCode;// 错误代码
    public long getMessageID() {
        return messageID;
    }
    public void setMessageID(long messageID) {
        this.messageID = messageID;
    }
    public long getGroupID() {
        return groupID;
    }
    public void setGroupID(long groupID) {
        this.groupID = groupID;
    }
    public boolean isGroup() {
        return isGroup;
    }
    public void setGroup(boolean isGroup) {
        this.isGroup = isGroup;
    }
    public int getChatType() {
        return chatType;
    }
    public void setChatType(int chatType) {
        this.chatType = chatType;
    }
    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public String getErrorMsg() {
        return errorMsg;
    }
    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
    public int getErrorCode() {
        return errorCode;
    }
    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public long getUserID() {
        return userID;
    }
    public void setUserID(long userID) {
        this.userID = userID;
    }
    public boolean isFirst() {
        return isFirst;
    }
    public void setFirst(boolean isFirst) {
        this.isFirst = isFirst;
    }
    public long getFriendID() {
        return friendID;
    }
    public void setFriendID(long friendID) {
        this.friendID = friendID;
    }
}
